//引用Vuex
import Vue from 'vue'
import Vuex from 'vuex'

import locales from './modules/locales.js'
import tabbar from './modules/tabbar.js'
import user from './modules/user.js'
import updated from './modules/updated.js'
import start from './modules/start.js'
Vue.use(Vuex)

//实例store对象
const store = new Vuex.Store({
	state: {
	},
	getters: {
	langs: () => locales.state.lang,
	userInfo: () => user.state.userInfo,
	AndroidEdition: () => updated.state.AndroidEdition,
	IOSEdition: () => updated.state.IOSEdition,
	updateContent: () => updated.state.updateContent,
	updateInfo: () => updated.state.updateInfo
	},
	mutations: { },
	modules: {
		locales,
		tabbar,
		user,
		updated,
		start
	}
})

//导出store对象
export default store

